const express = require('express');
const router = express.Router();
const businessController = require('../controllers/businessController');

// 商家管理路由
router.get('/admin/v1/business', businessController.getBusinessDetail);
router.put('/admin/v1/business', businessController.updateBusiness);
router.post('/admin/v1/business', businessController.addBusiness);
router.get('/admin/v1/businesses', businessController.getBusinessList);

// 充值管理路由
router.post('/admin/v1/recharge', businessController.addRecharge);
router.post('/admin/v1/recharge/invalid', businessController.invalidRecharge);
router.get('/admin/v1/recharges', businessController.getRechargeList);

module.exports = router;